#{extends 'master.html' /}
<div class="page-block">
    <div class="pager">
        #{pager model:userList, action:'User.list', map:params.allSimple() /}
    </div>
    <table class="shopping-items">
        <thead>
        <tr>
            <th class="delete-header"></th>
            <th>&{'User.list.header.id'}</th>
            <th>&{'User.list.header.registerDate'}</th>
            <th>&{'User.list.header.email'}</th>
            <th>&{'User.list.header.name'}</th>
        </tr>
        </thead>
        #{list items:userList.items, as:'user'}
        <tr>
            <td class="delete-column"><a class="delete-item" title="&{'OrderAdmin.list.removeitem'}"
                                         href="@{User.deleteConfirmation(user.id)}">&nbsp;</a>
            </td>
            <td>
                ${user.id}
            </td>
            <td>
                ${user.registerDate.format("yyyy-MM-dd")}
            </td>
            <td>
                <a href="@{User.display(user.id)}">
                    ${user.email}
                </a>
            </td>
            <td>
                <a href="@{User.display(user.id)}">
                    ${user.name}
                </a>
            </td>

        </tr>
        #{/list}
    </table>
    <div class="pager">
        #{pager model:userList, action:'User.list', map:params.allSimple() /}
    </div>
</div>